import { request } from '@/api/service'


export function GetList (query) {
  return request({
    url: '/generator/tables',
    method: 'get',
    data: query
  })
}

export function Generate (tableName) {
  return request({
    url: '/generator/generate',
    method: 'get',
    params: {
      tableName
    }
  })
}
export function AddObj (obj) {
  return request({
    url: '/localPagination/add',
    method: 'post',
    data: obj
  })
}

export function UpdateObj (obj) {
  return request({
    url: '/localPagination/update',
    method: 'post',
    data: obj
  })
}
export function DelObj (id) {
  return request({
    url: '/localPagination/delete',
    method: 'post',
    data: { id }
  })
}
